import axios from "@/utils/api.request";

// 商品分类添加
export const goodsAdd = info => {
  return axios.request({
    url: "food/add",
    data: info,
    method: "post"
  });
};
// 商品分类修改
export const goodsUpdate = info => {
  return axios.request({
    url: "food/update",
    data: info,
    method: "post"
  });
};
// 商品分类删除
export const goodsDel = info => {
  return axios.request({
    url: "food/del",
    data: info,
    method: "post"
  });
};
// 商品分类查询
export const goodsPage = info => {
  return axios.request({
    url: "food/page",
    data: info,
    method: "post"
  });
};